package com.md.drcs.dicom.entity;

import com.md.common.utils.json.JSONUtil;
import org.apache.commons.lang3.StringUtils;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 功能描述：t_hospitalinfo表实体
 * 
 * @author liuzg1@guahao.com
 * @version 1.0
 * @date 2018/12/11 18:04
 * @since JDK 1.8
 */
@Table(name = "t_hospitalinfo")
public class HospitalinfoEntity implements Serializable{
	
	//columns START
	/**
	 * sHospId
	 */
	@Id
	@Column(name = "sHospId")
	private String sHospId;
	/**
	 * sPatHospId
	 */
	@Column(name = "sPatHospId")
	private String sPatHospId;
	/**
	 * sHospName
	 */
	@Column(name = "sHospName")
	private String sHospName;
	/**
	 * nUseage
	 */
	@Column(name = "nUseage")
	private Integer nUseage;
	/**
	 * nAccessReport
	 */
	@Column(name = "nAccessReport")
	private Integer nAccessReport;
	/**
	 * nAccessImage
	 */
	@Column(name = "nAccessImage")
	private Integer nAccessImage;
	/**
	 * nPrinter
	 */
	@Column(name = "nPrinter")
	private Integer nPrinter;
	/**
	 * nConsult
	 */
	@Column(name = "nConsult")
	private Integer nConsult;
	/**
	 * 病人访问信息的控制方式0为不控制，1为姓名控制，2为密码控制
	 */
	@Column(name = "nAccess")
	private Integer nAccess;
	//columns END 数据库字段结束
	
	//get and set
	public void setSHospId(String sHospId) {
		this.sHospId = StringUtils.trim(sHospId);
	}
	
	public String getSHospId() {
		return this.sHospId;
	}
	
	public void setSPatHospId(String sPatHospId) {
		this.sPatHospId = StringUtils.trim(sPatHospId);
	}
	
	public String getSPatHospId() {
		return this.sPatHospId;
	}
	
	public void setSHospName(String sHospName) {
		this.sHospName = StringUtils.trim(sHospName);
	}
	
	public String getSHospName() {
		return this.sHospName;
	}
	
	public void setNUseage(Integer nUseage) {
		this.nUseage = nUseage;
	}
	
	public Integer getNUseage() {
		return this.nUseage;
	}
	
	public void setNAccessReport(Integer nAccessReport) {
		this.nAccessReport = nAccessReport;
	}
	
	public Integer getNAccessReport() {
		return this.nAccessReport;
	}
	
	public void setNAccessImage(Integer nAccessImage) {
		this.nAccessImage = nAccessImage;
	}
	
	public Integer getNAccessImage() {
		return this.nAccessImage;
	}
	
	public void setNPrinter(Integer nPrinter) {
		this.nPrinter = nPrinter;
	}
	
	public Integer getNPrinter() {
		return this.nPrinter;
	}
	
	public void setNConsult(Integer nConsult) {
		this.nConsult = nConsult;
	}
	
	public Integer getNConsult() {
		return this.nConsult;
	}
	
	public void setNAccess(Integer nAccess) {
		this.nAccess = nAccess;
	}
	
	public Integer getNAccess() {
		return this.nAccess;
	}
	
	
	public String toString() {
		return JSONUtil.toJSON(this);
	}
	
}

	
